Ext.define('sheath.view.main.CaseSearchForm', {
    extend: 'Ext.form.Panel',
    xtype: 'casesearchform',
    layout: {
        type: 'hbox',
        pack: 'start',
        align: 'stretch'
    },
    items: [
   {
        xtype: 'fieldcontainer',
        combineErrors: true,
        msgTarget : 'side',
        layout: 'hbox',       
        defaults: {
         flex: 1,
         hideLabel: true       
        },
        items: [{
            xtype: 'datefield',
            name: 'startDate',
            emptyText: '开始时间',      
            fieldLabel: 'Start',
            margin: '0 5 0 0',
            allowBlank: false
        }, {
            xtype     : 'datefield',
            name      : 'endDate',
            emptyText: '结束时间',   
            fieldLabel: 'End',
            allowBlank: false
        }]
    },
    {
    xtype: 'fieldcontainer',

        combineErrors: true,
        msgTarget : 'side',
        layout: 'hbox',
        defaults: {
            flex: 1     
        },
        items:[  {
            xtype: 'combobox',
            reference: 'states',
            publishes: 'value',
            emptyText: '用例任务',            
            margin:'0 0 0 5', 
            queryMode: 'local',
            triggerAction: 'all',
            editable: false,
            width: 150,
            name: '',
            displayField: 'name',
            valueField: 'value',
            store: {
                fields: ['name', 'value'],
                data: [
                    { name: '全部', value: '' },
                    { name: '登录', value: '0' },
                    { name: '出库', value: '1' },
                    { name: '入库', value: '1' }
                ]
            }  
        },{
            xtype: 'combobox',
            reference: 'states',
            publishes: 'value',
            emptyText: '状态',   
            margin:'0 0 0 5',  
            queryMode: 'local',
            triggerAction: 'all',
            editable: false,
            width: 150,
            name: '',
            displayField: 'name',
            valueField: 'value',
            store: {
                fields: ['name', 'value'],
                data: [
                    { name: '全部', value: '' },
                    { name: '已通过', value: '0' },
                    { name: '未通过', value: '1' },
                    { name: '回归中', value: '2' }                                                                                           
                ]
            }        
        }],

    },
{
    xtype: 'button',
    text: '搜索',
    cls: 'btn',
    style: 'margin-left:20px',
    handler: "serach"
}


    ]



})